import request from '@/utils/request'

// 查询手作管理列表
export function listHandmade(query) {
  return request({
    url: '/manage/handmade/list',
    method: 'get',
    params: query
  })
}

// 查询手作管理详细
export function getHandmade(id) {
  return request({
    url: '/manage/handmade/' + id,
    method: 'get'
  })
}

// 新增手作管理
export function addHandmade(data) {
  return request({
    url: '/manage/handmade',
    method: 'post',
    data: data
  })
}

// 修改手作管理
export function updateHandmade(data) {
  return request({
    url: '/manage/handmade',
    method: 'put',
    data: data
  })
}

// 删除手作管理
export function delHandmade(id) {
  return request({
    url: '/manage/handmade/' + id,
    method: 'delete'
  })
}
